#ifndef CHARACTERVIEW_H
#define CHARACTERVIEW_H

#include "HexEditViewBase.h"


class CharacterView: public HexEditViewBase {
  public:


    CharacterView( HexEditPanel* panel );

  protected:


    virtual void OnActivate( bool becomesActive );


    virtual void OnOffsetChange(
      OffsetT screenStartOffset,
      OffsetT currentOffset,
      OffsetT blockStart,
      OffsetT blockEnd );


    virtual void OnProcessChar( wxChar ch );


    virtual void OnMoveLeft();


    virtual void OnMoveRight();


    virtual void OnMoveUp();


    virtual void OnMoveDown();


    virtual void OnPutLine( OffsetT startOffset, HexEditLineBuffer& buff, char* content, int bytes );


    virtual void OnGetBlockSizes( int& blockLength, int& blockBytes, int& spacing );


    virtual int OnGetOffsetFromColumn( int column, int& positionFlags );


    inline char Strip( char ch );

};

#endif
